Skip to content

Added support to build the oci8 and pdo_oci extensions - #13

Merged
sesmith177 merged 1 commit into
cloudfoundry:masterfrom
dmikusa:oracle_support
Aug 25, 2016
Merged

sesmith177 merged 1 commit into
cloudfoundry:masterfrom
dmikusa:oracle_support

Conversation

@dmikusa

@dmikusa dmikusa commented Aug 10, 2016

Copy link
Copy Markdown

Added support to build the oci8 and pdo_oci extensions for PHP 5.5, 5.6 and 7.0. These are conditionally built based on the presence of the Oracle Instant Client & SDK. Additional documentation and instructions are included in the PHP-Oracle.md file.

Test suite ran with no errors with and without the Oracle libraries present.

Let me know if there's any feedback on the code. My first time using mini_portile.

Thanks!

…5, 5.6 and 7.0. These are conditionally built based on the presence of the Oracle Instant Client & SDK. Additional documentation and instructions are included in the PHP-Oracle.md file.
@cfdreddbot

Copy link
Copy Markdown

Hey dmikusa-pivotal!

Thanks for submitting this pull request!

All pull request submitters and commit authors must have a Contributor License Agreement (CLA) on-file with us. Please sign the appropriate CLA (individual or corporate).

When sending signed CLA please provide your github username in case of individual CLA or the list of github usernames that can make pull requests on behalf of your organization.

If you are confident that you're covered under a Corporate CLA, please make sure you've publicized your membership in the appropriate Github Org, per these instructions.

Once you've publicized your membership, one of the owners of this repository can close and reopen this pull request, and dreddbot will take another look.

@cf-gitbot

Copy link
Copy Markdown

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/128038243

The labels on this github issue will be updated when the story is started.

@jchesterpivotal

Copy link
Copy Markdown
Contributor

Hi @dmikusa-pivotal, looks like your usual high standard. However my spider-sense is tingling about whether Oracle's libraries come with some kind of evil rider clauses that would affect us.

@flavorjones @sclevine might be worth throwing a few dragon's teeth into the ground to summon our lawyers for a quick look-over.

@flavorjones

Copy link
Copy Markdown
Contributor

oci8 source is redistributable under the PHP license

pdo_oci source appears to be licensed under the PHP license as well, though you have to look at the source code in order to determine this:

  +----------------------------------------------------------------------+
  | PHP Version 5                                                        |
  +----------------------------------------------------------------------+
  | Copyright (c) 1997-2005 The PHP Group                                |
  +----------------------------------------------------------------------+
  | This source file is subject to version 3.0 of the PHP license,       |
  | that is bundled with this package in the file LICENSE, and is        |
  | available through the world-wide-web at the following url:           |
  | http://www.php.net/license/3_0.txt.                                  |
  | If you did not receive a copy of the PHP license and are unable to   |
  | obtain it through the world-wide-web, please send a note to          |
  | license@php.net so we can mail you a copy immediately.               |
  +----------------------------------------------------------------------+
  | Author: Wez Furlong <wez@php.net>                                    |
  +----------------------------------------------------------------------+

I don't see anything controversial here, though I will ask Foundation legal to weigh in on the PHP License before asking y'all to proceed.

@dmikusa

dmikusa commented Aug 17, 2016 •

Copy link
Copy Markdown
Author

@jchesterpivotal - agreed. Oracle licensing is definitely a concern. To work around it, I tried to take the typical approach for open source projects integrating with proprietary products, which is to make it as easy as possible but rely on the end user to provide the proprietary bits. That way we're not providing / distributing anything proprietary. Hopefully that's enough to make this work and not step on Oracle's toes.

@flavorjones

Copy link
Copy Markdown
Contributor

One interesting clause in the PHP License v3.0 is:

Products derived from this software may not be called "PHP", nor
     may "PHP" appear in their name, without prior written permission
     from group@php.net.  You may indicate that your software works in
     conjunction with PHP by saying "Foo for PHP" instead of calling
     it "PHP Foo" or "phpfoo"

which presents an interesting question around whether the php-buildpack is considered to be "derived" from "this software".

I've reached out to the Foundation.

@sclevine

Copy link
Copy Markdown

The Foundation concluded that this is not an issue. We should be okay to proceed.

@RochesterinNYC

Copy link
Copy Markdown
Contributor

Awesome.

@dmikusa-pivotal is there a way to programmatically download the Oracle Instant Client Basic? It seems like a manual agreement to terms step is needed on the site. Asking for the purpose of writing integration specs testing this PR/new functionality.

@dmikusa

dmikusa commented Aug 19, 2016

Copy link
Copy Markdown
Author

My understanding is that you have to have an OTN account to download the Instant Client & SDK. They do not, as far as I know, have an download that is outside the OTN.

@sesmith177

Copy link
Copy Markdown
Contributor

We're merging this in. We've also added integration tests and made some small changes to the php recipes.

@sesmith177
sesmith177 merged commit bcc69da into cloudfoundry:master Aug 25, 2016
@RochesterinNYC

Copy link
Copy Markdown
Contributor

Changes and integration specs added here: c84bb16

bonfilsd pushed a commit to orange-cloudfoundry/binary-builder that referenced this pull request Oct 12, 2017
Added support to build the `oci8` and `pdo_oci` extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants